import request from '../utils/axios';

// 获取计费方案
export function getEnergyEleRate(data) {
	return request({
		url: '/system/eleRate/getEnergyEleRate',
		method: 'get',
		params: data
	});
}
export function addEnergyEleRate(data) {
	return request({
		url: '/system/eleRate/addEnergyEleRate',
		method: 'post',
		data
	});
}
export function updateEnergyEleRate(data) {
	return request({
		url: '/system/eleRate/updateEnergyEleRate',
		method: 'put',
		data
	});
}
export function getEleRateQuarterTmpByTmpId(data) {
	return request({
		url: '/eleRateTmp/getEleRateQuarterTmpByTmpId',
		method: 'get',
		params: data
	});
}
export function getEleRateTmpList(data) {
	return request({
		url: '/eleRateTmp/getEleRateTmpList',
		method: 'get',
		params: data
	});
}
export function deleteEnergyEleRateQuarterById(data) {
	return request({
		url: '/system/eleRate/deleteEnergyEleRateQuarterById',
		method: 'delete',
		params: data
	});
}
export function updateEnergyEleRateQuarter(data) {
	return request({
		url: '/system/eleRate/updateEnergyEleRateQuarter',
		method: 'put',
		data
	});
}
export function getCity(data) {
	return request({
		url: '/system/eleRate/getCity',
		method: 'get',
		params: data
	});
}
export function deleteEnergyEleRateById(data) {
	return request({
		url: '/system/eleRate/deleteEnergyEleRateById',
		method: 'delete',
		params: data
	});
}
export function addRateInfo(data) {
	return request({
		url: '/eleRateInfo/addRateInfo',
		method: 'post',
		data
	});
}
export function getRateInfo(data) {
	return request({
		url: '/eleRateInfo/getRateInfo',
		method: 'get',
		params: data
	});
}
export function addEnergyEleRateQuarter(data) {
	return request({
		url: '/system/eleRate/addEnergyEleRateQuarter',
		method: 'post',
		data
	});
}